-- GENERATED SPELL FOR [Ashtongue Battlelord] --


function spell0_22844(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22844', 528, 1)
end

function spell1_22844(pUnit, Event) --@Concussion Blow,n/a--
pUnit:FullCastSpellOnTarget(32588,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22844', 5323, 1)
end

function spell2_22844(pUnit, Event) --@Concussive Throw,n/a--
pUnit:FullCastSpellOnTarget(41182,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22844', 5336, 1)
end

function spell3_22844(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(34970,pUnit)
pUnit:RegisterEvent('Sorts_22844', 636, 1)
end

function Sorts_22844(pUnit, Event)
local choix_sorts_22844 = math.random(0, 3)
if choix_sorts_22844 == 0 then
pUnit:RegisterEvent('spell0_22844', 1, 1)
end
if choix_sorts_22844 == 1 then
pUnit:RegisterEvent('spell1_22844', 1, 1)
end
if choix_sorts_22844 == 2 then
pUnit:RegisterEvent('spell2_22844', 1, 1)
end
if choix_sorts_22844 == 3 then
pUnit:RegisterEvent('spell3_22844', 1, 1)
end
end

function mob22844_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22844', math.random(1500, 3000), 1)
end

function mob22844_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22844_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22844_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22844, 1, 'mob22844_Action')
RegisterUnitEvent(22844, 2, 'mob22844_Leave')
RegisterUnitEvent(22844, 3, 'mob22844_Kill')
RegisterUnitEvent(22844, 4, 'mob22844_Die')
